Enum LogType

java.lang.Object
java.lang.Enum<LogType>
edu.claflin.finder.log.LogType
All Implemented Interfaces:
Serializable, Comparable<LogType>, java.lang.constant.Constable

public enum LogType extends Enum<LogType>
Enumeration of the logging types used by the logging utility.
Version:
3.1 May 28, 2015
Author:
Charles Allen Schultz II
  • Enum Constant Details

    • INFO

      public static final LogType INFO
    • ERRR

      public static final LogType ERRR
    • ALGO

      public static final LogType ALGO
    • GRPH

      public static final LogType GRPH
  • Field Details

    • identifier

      private final String identifier
      Identification string for the type of the log.
  • Constructor Details

    • LogType

      private LogType(String identifier)
      Constructs the LogLevel object with the specified identification String.
      Parameters:
      identifier - the String to differentiate log types.
  • Method Details

    • values

      public static LogType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static LogType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Used to get a user friendly version of the LogType.
      Overrides:
      toString in class Enum<LogType>
      Returns:
      the String consisting of the identifier and a trailing space.